#import "BWActionButton.h"
#import "BWActionButtonCell.h"

@implementation BWActionButton


+ (Class) cellClass
{
    return ([BWActionButtonCell class]);

} // cellClass


- (id) initWithCoder: (NSCoder *) aDecoder
{
    if (self = [super initWithCoder: aDecoder]) {
        NSString *stringValue;
        BOOL pullDown;

        stringValue = [[self cell] stringValue];
        pullDown = [[self cell] pullsDown];

        BWActionButtonCell *cell;
        cell = [[BWActionButtonCell alloc] 
                   initTextCell: stringValue
                   pullsDown: pullDown];

        [cell setMenu: [[self cell] menu]];

        [self setCell: cell];
        [cell release];
    }

    return (self);

} // initWithCoder

@end // BWActionButton

